var express = require('express');
var router = express.Router();

var path = require('path');

var htmlFile = fileName => path.resolve(process.cwd(), `build/${fileName}.html`);
var appHtml = htmlFile('index');

/* GET home page. */
router.get('*', function (req, res, next) {
    res.sendFile(appHtml)
});

module.exports = router;
